package Test1230am;

public class Test16 {

    public static void main(String[] args) {
        // (16)
        // 1.顺序打印数组arr中所有元素
        // 2.从后向前打印数组中的所有元素
        int[] arr = {6, 1, 7, 4, 3};
        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i] + " ");


        }
        System.out.println();

        for (int i = arr.length-1; i >=0; i--) {
            System.out.println(arr[i]);}

    }



}


